package com.frxuexi.lib_http

import retrofit2.Retrofit

object NetWorkFactory {

    lateinit var retrofit: Retrofit
    fun factory(type:HttpType):Retrofit{
        when(type){
            HttpType.NONE->{
                retrofit=NoneRetrofitImpl().createRetrofit()
            }

            HttpType.TOKEN->{
                retrofit=TokenRetrofitImpl().createRetrofit()
            }
        }
        return retrofit
    }
}